﻿using System;
using System.Runtime.InteropServices;

namespace SharpCmd.Dialogs.Standalone
{
    internal static class NetworkShareDialogs
    {
        public const int RESOURCETYPE_DISK = 0x1;

        [DllImport("mpr.dll", EntryPoint = "WNetConnectionDialog", SetLastError = true, CharSet = CharSet.Auto)]
        public static extern int WNetConnectionDialog(IntPtr hwnd, int type);

        [DllImport("mpr.dll", EntryPoint = "WNetDisconnectDialog", SetLastError = true, CharSet = CharSet.Auto)]
        public static extern int WNetDisconnectDialog(IntPtr hwnd, int type);
    }
}